package com.xjtu.common.api;


import lombok.Getter;

/**
 * API公共返回状态码
 */
@Getter
public enum ResultCode {
    OK(0, "成功"),

    ERROR(1, "失败"),

    PARAM_ERROR(11, "参数不正确"),

    CLIENT_ERROR(12, "用户端错误"),

    VALIDATE_USERNAME_FAILED(13, "用户名校验失败");

    private Integer code;
    private String msg;


    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
